// 权限表
import request from "@/utils/https/requests";

// 列表
export function rightsList(data: any) {
    return request({
        url: "/rights/list", method: "post", data,
    });
}

// 添加
export function postAddRights(data: any) {
    return request({
        url: "/rights/postAdd", method: "post", data,
    });
}

// 修改
export function postModRights(data: any) {
    return request({
        url: `/rights/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteRights(id: string) {
    return request({
        url: `/rights/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteRights = (id) => {
    return request({
        url: `/rights/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function rightsDetail(id: string) {
    return request({
        url: `/rights/detail/${id}`, method: "post",
    });
}